package com.base.admin.util;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author rqq
 */
public class DigestUtils {
    private final static Digester sha256 = new Digester(DigestAlgorithm.SHA256);
    public static String sha256Encrypt(String password) {
        return sha256.digestHex(password);
    }
}
